package com.chatcompetition.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chatcompetition.common.api.CommonPage;
import com.chatcompetition.domain.entity.CompetitionActivity;

import java.util.List;

public interface ActivityService extends IService<CompetitionActivity> {

    CompetitionActivity getById(Long id);

    CommonPage<CompetitionActivity> listAllActivities(int page, int size);
    CommonPage<CompetitionActivity> listAllActivitiesAddTeachers(int page, int size);


    boolean update(CompetitionActivity activity);
    boolean delete(Long id);
    /**
     * @return 转换后的活动列表
     */
    List<String> convertCompetitionsToActivities();
    // 查询所有活动超级管理员
    List<CompetitionActivity> listAllActivities();

    List<CompetitionActivity> listAllActivitiesAddTeachers();
}
